<div class="modal fade addKeyWordWin" id="viewRelTheme">
  <div class="modal-dialog modal-lg modal-dialog-centered" style="height:670px;">
    <div class="modal-content" style="border:0px;">
      <!-- 模态框头部 -->
      <div class="modal-header">
        <h4 class="modal-title">相关主题词 — {{ relThemeName }}</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <!-- 模态框主体 -->
      <div class="modal-body">
        <div class="container">
          <div class="box-internal-reltheme" >
            <div class="row">
              <div class="col-md-4">
                <div class="PI-keyWord-Left">
                  <p>主题词表</p>
                  <div class="PI-keyWord-Left-input" style="height: 100%;">
                    <div class="row treeview treeviewBox" style="overflow: scroll;height: 430px;margin-top:5px;border:0">
                      <!--<div id="tree" class="treeview">-->

                        <p-treeTable [value]="treeData" [lazy]="true" (onNodeExpand)="onNodeExpand($event)">
                          <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-i="index">
                            <tr [ngClass]="{'tableSet_li_selected':rowData.themeTableId == currentActive}" class="reltheme-link treegrid-2 treegrid-collapsed" #event (click)="themeTableSelect(rowData);">
                              <td class="w30 text-left max-w">
                                <p-treeTableToggler [rowNode]="rowNode" (onNodeExpand)="onNodeExpand($event)"></p-treeTableToggler>
                                {{rowData.name}}
                              </td>
                            </tr>
                          </ng-template>
                        </p-treeTable>


                      <!--</div>-->
                    </div>
                  </div>

                </div>
              </div>
              <div class="col-md-8 PI-keyWord-Right">
                <div class="row txtTitle">
                  <input type="text" class="input_style" placeholder="请输入主题词名称" name="searchDataTheme"  [(ngModel)]="searchDataTheme" (input)="changesearch()" (keyup.enter)="changesearch()">
                  <span class="btn btn-search btn-blue" (click)="search()">检索</span>
                </div>
                <div class="row treeview treeviewBox table-thead-scroll" style="overflow: scroll;height: 445px;margin-top:5px;border:0">
                  <table class="table table-hover table-striped tableStyle" style="border:0px;">
                    <thead>
                      <tr>
                        <th>主题词</th>
                        <th>创建日期</th>
                        <!--<th>状态</th>-->
                        <th>标签</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr *ngFor="let v of themeData" class="reltheme-link" (click)="addRelTheme(v);">
                        <td>
                          {{v.name}}
                        </td>
                        <td>{{v.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                        <!--<td>-->
                          <!--<span class="EnableColor" *ngIf="v.status === 0">启用</span>-->
                          <!--<span class="DisableColor" *ngIf="v.status === -1">禁用</span>-->
                        <!--</td>-->
                        <td>
                          {{v.labelName}}
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <!-- 分页 BEGIN -->
                  <app-pagination [pageSize]="pageSize" [showLeft]="false" [getTotalItems]="totalRecords" (isLoadTableFromPagination)="_pagination($event)"></app-pagination>
                  <!-- 分页 END -->
                </div>

              </div>
            </div>
            <div class="row">
              <span>已选择关联主题词</span>
              <div class="row treeview treeviewBox" style="overflow: scroll;height:270px;">
                <table class="table table-hover table-striped tableStyle" style="border:0px;">
                  <thead>
                  <tr>
                    <th>主题词表</th>
                    <th>主题词</th>
                    <th>创建日期</th>
                    <!--<th>标签</th>-->
                    <!--<th>状态</th>-->
                    <th>操作</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr *ngFor="let v of relThemeData" class="reltheme-link">
                    <td>
                      {{v.name}}
                    </td>
                      <td>
                      {{v.relThemeWordsName}}
                    </td>
                    <td>{{v.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <!--<td>-->
                      <!--<span class="EnableColor" *ngIf="v.status === 0">启用</span>-->
                      <!--<span class="DisableColor" *ngIf="v.status === -1">禁用</span>-->
                    <!--</td>-->
                    <!--<td>-->
                      <!--{{v.labelName}}-->
                    <!--</td>-->
                    <td>
                      <span class="tableOperationText" #event (click)="delRelTheme(v.relationId);">删除</span>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 模态框底部 -->
      <div class="modal-footer">
        <!--<button type="button" class="btn btn-primary" data-dismiss="modal">保存</button>-->
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>

    </div>
  </div>
</div>
<internal-indexed-modal-reltheme-delete></internal-indexed-modal-reltheme-delete>